﻿using CamCommander;
using CamCommander.Commands;

namespace Demo
{
	class Program
	{
		static void Main(string[] args)
		{
				
				ICameraCommands commandsSP_HS04WR = new SP_HS04WR();
				var urlSP_HS04WR = "http://192.168.0.105";
				var userNameSP_HS04WR = "admin";
				var passwordSP_HS04WR = "admin";
				ICamera spHS04WR = new Camera(urlSP_HS04WR, userNameSP_HS04WR, passwordSP_HS04WR);

				ICameraCommands commandsWcs2060 = new Wcs2060();
				var urlWcs2060 = "http://192.168.0.104";
				var userNameWcs2060 = "root";
				var passwordWcs2060 = "stolpskott";
				ICamera wcs2060 = new Camera(urlWcs2060, userNameWcs2060, passwordWcs2060);
			while(true)
			{


				//spHS04WR.CommandSent += new CameraEventHandler(spHS04WR_CommandSent);
				spHS04WR.Send(commandsSP_HS04WR.TurnLeft);


				//spHS04WR.CommandSent += new CameraEventHandler(spHS04WR_CommandSent);
				wcs2060.Send(commandsWcs2060.TurnLeft);

				System.Threading.Thread.Sleep(700);

				//spHS04WR.CommandSent += new CameraEventHandler(spHS04WR_CommandSent);
				spHS04WR.Send(commandsSP_HS04WR.TurnRight);


				//spHS04WR.CommandSent += new CameraEventHandler(spHS04WR_CommandSent);
				wcs2060.Send(commandsWcs2060.TurnRight);
			}

		}

	}
}